package com.jic.member.enums;

/**
 * @author yinhaijun
 * @date: 2020/6/8
 */
public enum TripTimingJobTypeEnum {

    TRIP_START(1, "旅程启动"),
    TIMED_TRIGGER(2, "定时触发"),
    EVENT_CONDITION(3, "事件判断"),
    EXE_ACTION(4, "执行动作"),
    TRIP_END(5, "旅程结束"),
    ;

    private Integer code;

    private String message;

    TripTimingJobTypeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public TripTimingJobTypeEnum getByCode(Integer code){
        TripTimingJobTypeEnum[] values = TripTimingJobTypeEnum.values();
        for(TripTimingJobTypeEnum value : values){
            if(value.getCode().equals(code)){
                return value;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
